<!--{$html}-->
<script type="text/javascript">
    $('title').text('前端模板编辑');
    $('head').append('<link rel="stylesheet" href="/quanliadmin/docroot/css/styles.css" type="text/css" media="screen" />');
    $('head').append('<link rel="stylesheet" href="/framework/kindeditor/themes/default/default.css" type="text/css" media="screen" />');
    $('head').append('<script src="/framework/kindeditor/kindeditor-all.js?v=2014030619" type="text/javascript"><\/script>');
    $('head').append('<script src="/framework/kindeditor/lang/zh_CN.js" type="text/javascript"><\/script>');

    var template_html = '<div class="bottom_fixbox">';
    template_html += '<div class="rectbox tac">';
    template_html += '<input type="button" class="btn" onclick="template.edit.check();" value="保存" />';
    template_html += '<input type="button" class="btn" onclick="template.edit.refreshCache();" value="更新缓存" />';
    template_html += '<input type="button" class="btn" onclick="E.closeWindows();" value="关闭" />';
    template_html += '</div>';
    template_html += '</div>';

    template_html += '<div style="visibility: visible;display: none;" class="template_popup" id="template_popup">';
    template_html += '<div class="template_popup_handle" style="left: 0px;">';
    template_html += '<div>';
    template_html += '<a class="template_popup_btn edit" title="修改">修改</a>';
    template_html += '</div>';
    template_html += '</div>';
    template_html += '</div>';

    $('body').append(template_html);

    <!--{if isset($source_array)}-->
    var template_source = <!--{$source_array}-->;
    <!--{else}-->
    var template_source = {};
    <!--{/if}-->

    var tempate_city_id = <!--{$cityID}-->;
    var tempate_page_type = <!--{$page_type}-->;

</script>
<script type="text/javascript" src="/quanliadmin/docroot/js/common/page_edit.js?v=20140714"></script>
